package com.tools.bitbucket.pojo;

import lombok.Data;

import java.util.List;
import java.util.Objects;

@Data
/**
 * 项目信息
 */
public class BitbucketProject {
    //项目的key
    private String key;
    //项目名称
    private String name;
    //项目描述
    private String description;
    //是否备份过
    private Boolean exist;
    //项目下的仓库列表
    private List<CloneObject> repositoryList;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        BitbucketProject that = (BitbucketProject) o;
        return Objects.equals(key, that.key);
    }

    @Override
    public int hashCode() {
        return Objects.hash(key);
    }
}
